﻿#region 信息

// Copyright©2014 Rex Rao all rights reserved.
// File name : SoMcCoffee\Sohobloo.SoPermission.Web\Global.asax.cs
// Author : Sohobloo
// Create time : 2014/02/20 21:07
// Update time : 2014/02/20 21:25

#endregion

#region 引用

using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Sohobloo.SoCommon.Log;
using Sohobloo.SoMcCoffee.Mef;
using Sohobloo.SoPermission.Data.Initialization;

#endregion

namespace Sohobloo.SoPermission.Web
{
    // 注意: 有关启用 IIS6 或 IIS7 经典模式的说明，
    // 请访问 http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            MefMvcConfig.RegisterSolver();
            LogInitializer.Initialize();
            DbInitializer.Initialize();
        }
    }
}